//Component Object
const { getStatusBarAndMenuButtonInfo } = require('../../utils/util')
Component({
  properties: {
    wechatAvatar:{
      type:String,
    },
    weComStatus:{
      type:Number,
      value:3,
    },
    inviteStatus:{
      type:Number,
    }
  },
  data: {
    menuButtonHeight:32,
    menuBarHeight:40,
    statusBarHeight:47,
    menuButtonGutter:4,
  },
  
  methods: {
    showInviteBanner(){
      this.triggerEvent('showInviteBanner')
    },
    jumpPublicAccountPage(){
      wx.navigateTo({
        url: '/pages/wecom/wecom'
      })
    }
  },
  created: function(){
    let { menuButtonHeight,statusBarHeight,menuButtonGutter,menuBarHeight} =  getStatusBarAndMenuButtonInfo()
    // console.log('menuButtonHeight:',menuButtonHeight)
    // console.log('menuBarHeight:',menuBarHeight)
    // console.log('menuButtonGutter:',menuButtonGutter)
    // console.log('statusBarHeight:',statusBarHeight)
    this.setData({
      menuButtonHeight,
      statusBarHeight,
      menuButtonGutter,
      menuBarHeight,
    })
  },
  attached: function(){

  },
  detached: function(){

  },
});